//
//  YHYDetailPictureCollectionViewCell.m
//  Home
//
//  Created by 杨泓晔 on 16/5/13.
//  Copyright © 2016年 LanJue. All rights reserved.
//

#import "YHYDetailPictureCollectionViewCell.h"

@implementation YHYDetailPictureCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatView];
    }
    return self;
}

- (void)creatView{
//    self.backgroundColor = [UIColor redColor];
    _myImageView = [UIImageView new];
    [self.contentView addSubview:_myImageView];
    [_myImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.mas_equalTo(self);
        make.height.width.mas_equalTo(self);
    }];
    
    _myImageView.layer.masksToBounds = YES;
    _myImageView.layer.cornerRadius = 5 * AUTO_WIDTH;
   // _myImageView.image = self.myImage;
}

- (void)setMyImageView:(UIImageView *)myImageView{
    
           _myImageView.image = myImageView.image;
        self.myImageView.image = myImageView.image;
        
    
    

}

- (void)changeImage:(BOOL)isChange {
    if (isChange) {
        [UIView animateWithDuration:0.3 animations:^{
            //  UIView *view = [self.myLabel.subviews objectAtIndex:1];
            //    view.backgroundColor = [UIColor blackColor]
            // self.myLabel.backgroundColor = GH;
           // self.myLabel.textColor = GH;
           // _myImageView.image = [UIImage imageNamed:@"myRight"];
        }];
    }
    else {
       // self.myLabel.backgroundColor = [UIColor whiteColor];
       // _myLabel.textColor = ZI;
        //_myImageView.image = [UIImage imageNamed:@"myRight"];
           }
    
    
    
}





@end
